package cn.itsource.pethome.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 描述:
 * @date: 2020/8/7 15:33
 * @author: summer
 * version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    private Long pageSize;
    private Long currentPage;

    public Long getBegin(){
        return (this.currentPage-1)*this.pageSize;
    }
}
